<?php
class Event_ChildrenForm extends Crud_Event_Handler
{
	protected $_type = 'form';

	/**
	 * Run handler with options array.
	 *
	 * @param Crud_Form $form
	 * @return void
	 */
	public function run($form)
	{
			$input = new Zend_Form_Element_Text('profile_id');
			//$input->setLabel('родитель');
			$input->setRequired(0);
			$input->setAttrib('default', $form->getElement('profile_id')->getValue());
			$form->addElement($input);
			$form->getElement('profile_id')->setAttrib('style', 'background: #EEE; display: none;');

	}
}